<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title>{cscms:title}</title>
    <meta name="Keywords" content="{cscms:keywords}" />
    <meta name="Description" content="{cscms:description}" />
    <link rel="shortcut icon" href="{cscms:path}favicon.ico" />
    <link rel="stylesheet" href="{cscms:webpath}packs/font/font.css">
    <link rel="stylesheet" type="text/css" href="{cscms:tempurl}css/user.css"/>
    <script type="text/javascript" src="{cscms:tempurl}js/user.js"></script>
</head>
<body>
    {cscms:head}
    {cscms:right}
    <div class="layui-tab layui-tab-card layui-tab-min" lay-filter="dt1" style="margin-top: 0px;margin-bottom: 0px">
        <ul class="layui-tab-title">
            <li class="layui-this"><a href="[user:url userlink=pay,lists]">充值记录</a></li>
            <li><a href="[user:url userlink=pay,spend]">消费记录</a></li>
            <li><a href="[user:url userlink=pay,income]">分成记录</a></li>
            <li><a href="[user:url userlink=pay,cardlist]">充值卡记录</a></li>
        </ul>
        <div class="layui-tab-content" style="padding:0px;">
            <div class="layui-tab-item layui-show">
                <div class="layui-tab layui-tab-brief">
				    <ul class="layui-tab-title">
				        <li {if:[pay:pid]==0}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]">全部记录</a></li>
				        <li {if:[pay:pid]==1}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/1">交易完成</a></li>
				        <li {if:[pay:pid]==2}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/2">等待发货</a></li>
				        <li {if:[pay:pid]==3}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/3">已经发货</a></li>
				        <li {if:[pay:pid]==4}class="layui-this"{end if}><a href="[user:url userlink=pay,lists]/4">交易失败</a></li>
				    </ul>
				    <style type="text/css">
						.layui-table td, .layui-table th{padding: 9px 10px;}
				    </style>
				    <div class="layui-tab-content" style="padding: 0px">
				    	<table class="layui-table" lay-even lay-skin="nob">
				    	<colgroup>
						</colgroup>
				    		<thead>
				    			<tr>
									<th>定单号</th>
									<th>金额</th>
									<th>状态</th>
									<th>时间</th>
				    			</tr>
				    		</thead>
				    		<tbody>
				    			{cscms:pay table="pay" field="*" uid="auto" pagesize="25" order="desc"}
                         		<tr{if:[pay:i]%2==1} class="re"{end if}>
								
									<td style="width: 100px;display: block;word-wrap: break-word;">[pay:dingdan]</td>
								
									<td>[pay:rmb]</td>
									<td>
									{if:[pay:pid]==0 || [pay:pid]>3}<font color=#ff3300>已失败</font>{end if}
									{if:[pay:pid]==1}<font color=#0000ff>已完成</font>{end if}
									{if:[pay:pid]==2}<font color=#009966>待发货</font>{end if}
									{if:[pay:pid]==3}<font color=#ff9900>已发货</font>{end if}
									</td>
									<td>[pay:addtime style=y/m/d]</td>
					     		</tr>
						 	{/cscms:pay}
				    		</tbody>
						</table>
						{if:{cscms:pagedata}==0}<div class="zanwu">暂无数据！</div>{end if}
						<div class="page" style="text-align: center;{if:{cscms:pagecout}<2}display: none;{end if}">
                            <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0">
                                <a href="{cscms:pageup}" class="layui-laypage-last" title="上一页">上一页</a>
                                {cscms:pagenum len=3}
                                <a href="{cscms:pagedown}" class="layui-laypage-next">下一页</a>
                            </div>
                       </div>
				    </div>
				</div>
            </div>
        </div>
    </div>
    {cscms:bottom}
</body>
</html>